USE [SecondBrain]
GO

/****** Object:  Table [dbo].[UserContacts]    Script Date: 01/30/2012 11:17:50 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[UserContacts]') AND type in (N'U'))
DROP TABLE [dbo].[UserContacts]
GO

USE [SecondBrain]
GO

/****** Object:  Table [dbo].[UserContacts]    Script Date: 01/30/2012 11:17:50 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[UserContacts](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[Name] [varchar](255) NOT NULL,
    [Address] [varchar](MAX) NULL,
    [Cell] [varchar](255) NULL,
    [Telephone] [varchar](255) NULL,
    [Email] [varchar](255) NULL,
	[insertBy] [dbo].[UDT_CURRENT_USER] NOT NULL,
	[insertDate] [dbo].[UDT_CURRENT_DATETIME] NOT NULL,
	[updateBy] [dbo].[UDT_CURRENT_USER] NOT NULL,
	[updateDate] [dbo].[UDT_CURRENT_DATETIME] NOT NULL,
 CONSTRAINT [PK_UserContacts] PRIMARY KEY NONCLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON, FILLFACTOR = 80) ON [IDX]
) ON [DATA]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[UserContacts] ADD  CONSTRAINT [DF_UserContacts_insertBy]  DEFAULT (original_login()) FOR [insertBy]
GO

ALTER TABLE [dbo].[UserContacts] ADD  CONSTRAINT [DF_UserContacts_insertDate]  DEFAULT (getdate()) FOR [insertDate]
GO

ALTER TABLE [dbo].[UserContacts] ADD  CONSTRAINT [DF_UserContacts_updateBy]  DEFAULT (original_login()) FOR [updateBy]
GO

ALTER TABLE [dbo].[UserContacts] ADD  CONSTRAINT [DF_UserContacts_updateDate]  DEFAULT (getdate()) FOR [updateDate]
GO

